import shopAxios from '../utils/request.js'

const BASE_URL = '/goodsAlbum'

// 保存商品相册
export function saveList(goods, goodsId) {
  return shopAxios({
    method: 'post',
    url: `${BASE_URL}/saveList`,
    data: goods,
    params: { goodsId }
  })
}

// 通过商品id获取商品图片列表
export function getListByGoodsId(goodsId) {
  return shopAxios({
    method: 'get',
    url: `${BASE_URL}/getListByGoodsId`,
    params: { goodsId }
  })
}
